import React from 'react'
import Modal from './component'
import { Button } from 'antd'

interface Props {}
const DragModalPage: React.FC<Props> = () => {
  const [visible, setVisible] = React.useState(false)
  return (
    <>
      <Button type="primary" onClick={() => setVisible(true)}>
        点击
      </Button>
      <Modal
        open={visible}
        title="标题"
        onCancel={() => setVisible(false)}
        cancelText="取消"
        okText="确定"
        onOk={() => setVisible(false)}
      />
    </>
  )
}
export default DragModalPage
